const knex = require("../../db/knex")
const {deleteOperation} = require("./delete");
const {saveOperation} = require("./add");


async function modifyQuestionnaire(params, res) {
    let {id, title, recommend, question_list, create_time} = params
    try{
        await deleteOperation(id)
        await saveOperation(params)
    }catch (e) {
        console.log(e)
    }

    console.log(params)
    res.send({
        msg: "77"
    })

}
module.exports = modifyQuestionnaire
